﻿@model SenFangKaoHe_MVC.Models.ViewModel.TempShiJuan
@{
    Layout = null;

}
<link rel="stylesheet" href="~/css/ShiJuanStyle.css" />
<script src="~/js/jquery-3.7.1.min.js"></script>

<div id="main">
    <div id="examTitle">
        @if (@Model.ShiTi == null)
        {
            <script>
                console.log("已经参加了");
                alert(@Json.Serialize(@Model.XingMing)+"你好：\r\n"+"你已经参加过"+@Json.Serialize(@Model.KaoHeMingCheng)+"\r\n理论成绩："+@Model.ChengJi+"\r\n绩效得分："+@Model.FenZhi);
                window.location.href = "/KaoShi/KaoShi/"+@Model.Id
            </script>
        }
        else
        {
            <button id="submit">交卷</button>
            <div id="info">
                <h1><label id="khmc">@Model.KaoHeMingCheng</label></h1>
                <div>
                    【考核范围】<label id="khtk" style="font-size:22px;font-family:SimHei">@Model.KaoHeFanWei</label><br />
                    <div id="info1">
                        <div class="infodiv">
                            【参考队员】<br /><label id="dyxm" style="font-size:35px;font-family:SimHei">@Model.XingMing</label>
                        </div>
                        <div class="infodiv">
                            【试题总数】<br /><label id="stzs" style="font-size:35px;font-family:SimHei">@Model.ShiTi.Count()</label>
                        </div>
                        <div class="infodiv">
                            【已答题数】<br /><label id="ydts" style="font-size:35px;font-family:SimHei">0</label>
                        </div>
                    </div>
                    <ul id="markInfo">
                        <li>当前题<span class="nowAnswer"></span></li>
                        <li>未做题<span class="noAnswer"></span></li>
                        <li>待查题<span class="markAnswer"></span></li>
                        <li>已做题<span class="yesAnswer"></span></li>
                    </ul>
                </div>
            </div>
            <div id="itemSelection">
                <p id="biaotilan">答题卡区</p>
                <div id="itemChoose"></div>
            </div>
            <div id="answer">
                <div id="item" style="overflow:scroll">
                    <p id="biaotilan">答题区</p>
                    <i id="index"> 1、【单选题】</i>
                    <p id="describe"></p>
                    <ul id="option"></ul>
                </div>


                <div id="ctrlBtn">
                    <button id="prevItem">上一题</button>
                    <button id="nextItem">下一题</button>
                    <button id="markItem">设置待查</button>
                </div>


            </div>
        }
    </div>
</div>
<script>
    var subject = @Json.Serialize(@Model.ShiTi);
    var kaohe11 = @Json.Serialize(@Model);
</script>
<script src="~/js/ShowShiJuan.js"></script>